const login=require("./utils/authentications/login").login
App({  
  onLaunch() {  
    this.entrance();  
  },  
  onLoad(options) {
   
  },
  
  globalData: {  
  }, 
  entrance() {  
    wx.login({  
      success: res => {  
        if (res.code) {  
          // 获取到code后，进行后续操作  
          login(res.code);  
        } else {  
          console.log('登录失败！' + res.errMsg);  
        }  
      }  
    });  
  },  
});